package com.stlm2.dems.entity;

/**
 * Created by fusyunu on 2016/11/2.
 */
public enum CardsType {

	Good(3){
		public String toString() {
			return "商品券";
		}
	},
	Category(4){
		public String toString() {
			return "分类券";
		}};

	private final int val;

	CardsType(int n) {
		val = n;
	}

	public int getIntValue() {
		return val;
	}

	public static CardsType getByIntValue(int n) {
		switch (n) {
			case 3:
				return Good;
			case 4:
				return Category;
			default:
				return null;
		}
	}
}
